
import { useParams, useSearchParams } from "react-router-dom"


function Article(){
    // const [params] = useSearchParams();
    // const id = params.get('id')
    // const name = params.get('name')

    const params = useParams()
    

    return(
        <div>文章页面 {params.id},{params.name}</div>
    )
}


export default Article